package com.asiainfo.ssm.execute.service.impl;

import com.ai.appframe2.service.ServiceFactory;
import com.asiainfo.ssm.execute.bo.BOWSReqXmlBean;
import com.asiainfo.ssm.execute.dao.interfaces.IWSReqXmlDAO; 
import com.asiainfo.ssm.execute.ivalues.IBOWSReqXmlValue;
import com.asiainfo.ssm.execute.service.interfaces.IWSReqXmlSV;

public class WSReqXmlSVImpl implements IWSReqXmlSV{
	public void saveWSReqXml(IBOWSReqXmlValue wSReqXmlValue) throws Exception{
		IWSReqXmlDAO dao = (IWSReqXmlDAO) ServiceFactory.getService(IWSReqXmlDAO.class);
		dao.saveWSReqXml(wSReqXmlValue);
	}

	@Override
    public void saveWSReqXml(String wsCode, String xml) throws Exception {
		IBOWSReqXmlValue bean = new BOWSReqXmlBean(); 
		bean.setWsCode(wsCode);
		bean.setXmlStr(xml);
		saveWSReqXml(bean);
    }
	  
}
